# Find curl
find_path(CURL_INCLUDE_DIR curl/curl.h /usr/include /usr/local/include)
find_library(CURL_LIBRARY curl /usr/lib/ /usr/local/lib)

if(CURL_INCLUDE_DIR AND CURL_LIBRARY)
  set(CURL_FOUND TRUE)
endif(CURL_INCLUDE_DIR AND CURL_LIBRARY)

if(CURL_FOUND)
  message(STATUS "Found curl: ${CURL_LIBRARY}")
else(CURL_FOUND)
  message(FATAL_ERROR "Curl not found!")
endif(CURL_FOUND)
